package com.a03staticdemo3;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        ArrayList<Student> list = new ArrayList<>();
        Student s1 = new Student("张三", 19, "男");
        Student s2 = new Student("李四", 18, "男");
        Student s3 = new Student("王五", 18, "男");
        list.add(s1);
        list.add(s2);
        list.add(s3);
        int masage = StudentUitl.getMaxAge(list);
        System.out.println(masage);
    }
}
